<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="entity.*" %>
    <%@ page import="Impor.StuDaoMySqlImpl" %>

    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	 <%
	 request.setCharacterEncoding("utf-8");
    String stuno=request.getParameter("stuno");
    String pass=request.getParameter("pass");
    StuDaoMySqlImpl sms = new StuDaoMySqlImpl();
 	boolean bool = sms.login(stuno, pass);
 	if(bool == true){
 		out.print("你的考试分数：");
 		ExamResult ex = sms.findScore(stuno);
 		out.print(ex + "<br>");	
 	} else {
 		out.print("<script>alert('您还没有登录，不能查看');location='login.jsp';</script>");
 		//request.getRequestDispatcher("login.jsp").forward(request, response);
 	}
    %>
    <%@include file="banquan.jsp" %>
</body>
</html>